package com.zjw.domain.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;


/**
 * 群聊消息表(GroupMessage)表实体类
 *
 * @author lkzy
 * @since 2024-01-03 14:41:28
 */
@TableName("group_message")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GroupMessage implements Serializable {
    //ID
    private Long id;
    //内容
    private String content;
    //发送人id
    private Long userId;
    //创建者id
    private Long createBy;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    //修改者id
    private Long updateBy;
    //修改时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    //逻辑删除字段 0 表示未删除, 1 表示已删除
    private Integer deleted;
    //消息类型类型; 0 文本消息; 1 图片消息
    private Integer type;

}
